package cn.com.blueInfo.bpm.system.entity;

import cn.com.blueInfo.bpm.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 用户-角色关联表
 * @author suxch
 * @since 2025-08-24 01:37:55
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mc_sys_user_role", autoResultMap = true)
@Schema(description = "用户-角色关联表")
public class UserRole extends BaseEntity {

    /** ID */
    @TableId(type = IdType.INPUT)
    @Schema(description = "ID")
    private Long id;
    /** 用户身份ID */
    @Schema(description = "用户身份ID")
    private Long userIdentityId;
    /** 角色ID */
    @Schema(description = "角色ID")
    private Long roleId;
    /** 角色过期时间 */
    @Schema(description = "角色过期时间")
    private LocalDateTime expireTime;

}
